includes("graphic_memory")

target("ucollection_utility")
	set_kind("shared")
	add_files(
		"calculator/cpu_calculator.cpp",
		"calculator/io_calculator.cpp",
		"collector/common_util.cpp",
		"collector/cpu_collector_impl.cpp",
		"collector/gpu_collector_impl.cpp",
		"collector/hiebpf_collector_impl.cpp",
		"collector/hilog_collector_impl.cpp",
		"collector/io_collector_impl.cpp",
		"collector/memory_collector_impl.cpp",
		"collector/network_collector_impl.cpp",
		"collector/perf_collector_impl.cpp",
		"collector/process_state_info_collector.cpp",
		"collector/sys_cpu_usage_collector.cpp",
		"collector/thermal_collector_impl.cpp",
		"collector/thread_state_info_collector.cpp",
		-- "collector/trace_collector_impl.cpp",
		"collector/device_client/collect_device_client.cpp",
		"collector/device_client/process_cpu_data.cpp",
		"collector/device_client/thread_cpu_data.cpp",
		-- "collector/utils/app_event_task_storage.cpp",
		-- "collector/utils/trace_flow_controller.cpp",
		-- "collector/utils/trace_manager.cpp",
		-- "collector/utils/trace_storage.cpp",
		-- "collector/utils/trace_utils.cpp",
		"collector/utils/trace_worker.cpp",
		"collector/wm_collector_impl.cpp",
		"decorator/cpu_decorator.cpp",
		"decorator/decorator.cpp",
		"decorator/gpu_decorator.cpp",
		"decorator/hiebpf_decorator.cpp",
		"decorator/hilog_decorator.cpp",
		"decorator/io_decorator.cpp",
		"decorator/memory_decorator.cpp",
		"decorator/network_decorator.cpp",
		"decorator/perf_decorator.cpp",
		"decorator/thermal_decorator.cpp",
		"decorator/trace_decorator.cpp",
		"decorator/unified_collection_stat.cpp",
		"decorator/wm_decorator.cpp",
		"process/process_status.cpp",
		"utils/cpu_util.cpp"
	)
	add_includedirs(
		"calculator/include",
		"collector/inner_include",
		"process/include",
		"decorator/include",
		"utils/include",
		"graphic_memory/include",
		"$(projectdir)/interfaces/inner_api/unified_collection",
		"$(projectdir)/interfaces/inner_api/unified_collection/utility",
		"$(projectdir)/interfaces/inner_api/unified_collection/resource",
		"$(projectdir)/framework/native/unified_collection/collector/inner_include",
		{public=true}
	)
	add_defines("PC_APP_STATE_COLLECT_ENABLE=1")
	add_deps(
		"graphic_memory",
		"hiviewbase"
	)
	add_packages(
		-- "ability_base:want",
		"ffrt",
		"hilog",
		"sysevent",
		-- "hitrace:hitrace_dump",
		-- "init:libbegetutil",
		-- "relational_store:native_rdb",
		"zlib",
		"c_utils",
		"minizip"
	)